package com.bean;

/**
 * @author hecn
 * @version 1.0
 * @date 2020/7/30 0030 22:31
 * @company
 */
public class Book {

    private int book_num;
    private String book_name;
    private String book_write;
    private int book_price;
    private String publish_time;
    private String publish_house;

    public Book() {
        super();
    }

    public Book(int book_num, String book_name, String book_write, int book_price, String publish_time, String publish_house) {
        this.book_num = book_num;
        this.book_name = book_name;
        this.book_write = book_write;
        this.book_price = book_price;
        this.publish_time = publish_time;
        this.publish_house = publish_house;
    }

    /***
     * getter and setter
     */
    public int getBook_num() {
        return book_num;
    }

    public void setBook_num(int book_num) {
        this.book_num = book_num;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public String getBook_write() {
        return book_write;
    }

    public void setBook_write(String book_write) {
        this.book_write = book_write;
    }

    public int getBook_price() {
        return book_price;
    }

    public void setBook_price(int book_price) {
        this.book_price = book_price;
    }

    public String getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(String publish_time) {
        this.publish_time = publish_time;
    }

    public String getPublish_house() {
        return publish_house;
    }

    public void setPublish_house(String publish_house) {
        this.publish_house = publish_house;
    }

    /***
     * toString
     */
    @Override
    public String toString() {
        return "图书{" +
                "书籍总数=" + book_num +
                ", 图书名='" + book_name + '\'' +
                ", 图书作者='" + book_write + '\'' +
                ", 图书价格='" + book_price + '\'' +
                ", 出版日期='" + publish_time + '\'' +
                ", 出版社='" + publish_house + '\'' +
                '}';
    }
}
